/**
 * @description  module entry
 * @author Ling
 * @date 2024-08-08
 */
import { IModuleConf } from '@wangeditor/editor';
import withVariable from './plugin';
import renderElemConf from './render-elem';
import elemToHtmlConf from './elem-to-html';
import parseHtmlConf from './parse-elem-html';
import { variableConf } from './menu/index';

const module: Partial<IModuleConf> = {
  editorPlugin: withVariable,
  renderElems: [renderElemConf],
  elemsToHtml: [elemToHtmlConf],
  parseElemsHtml: [parseHtmlConf],
  menus: [variableConf],
};

export default module;
